* {
    margin: 0;
    padding: 0;
    color: #333;
}

body {
    background: url(../images/bg.jpg) 0 0;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* ---------------nav--------------- */
.nav {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.nav .navbox {
    width: 100%;
    max-width: 1230px;
    padding: 5px 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 110px;
    height: 50px;
}

.logo img {
    width: 100%;
    height: 100%;
}

.search {
    width: 600px;
    flex-shrink: 999;
}

.search input {
    width: calc(100% - 100px);
    height: 30px;
    border-radius: 5px;
    border: none;
    outline: none;
    padding-left: 10px;
    vertical-align: middle;
}

.search button {
    border: none;
    height: 30px;
    width: 60px;
    margin-left: 10px;
    background-color: white;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
}

.colorbar {
    width: 190px;
    flex-shrink: 0;
}

.colorbar span {
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
    border: 1px solid white;
}

.colorbar span:first-child {
    background-color: yellow;
}

.colorbar span:nth-child(2) {
    background-color: blue;
}

.colorbar span:nth-child(3) {
    background-color: pink;
}

.colorbar span:last-child {
    background-color: #000;
}

.userbar {
    width: 50px;
    height: 50px;
    margin-right: 5px;
    position: relative;
}

.userbar img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.userbar:hover .opt {
    display: block;
}

.userbar .opt {
    display: none;
    width: 120px;
    height: 120px;
    position: absolute;
    left: -35px;
    top: 50px;
    background-color: white;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 2;
}

.userbar .opt span {
    display: block;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
}

.userbar .opt span:first-child {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

.userbar .opt .modify-petn {
    background: url(../images/modify.png) 8px 5px no-repeat;
    background-size: 20px 20px;
}

.userbar .opt .exit {
    background: url(../images/exit.png) 8px 5px no-repeat;
    background-size: 20px 20px;
}

/* ----------------content------------- */
.content {
    margin-top: 10px !important;
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

/* .bookmarks,.catalogue{
    margin-bottom: -2000px;
    padding-bottom: 2000px;
} */

/*---------------bookmarks--------------*/
.bookmarks {
    width: calc(100% - 260px);
    /* height: 613px; */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bookmarks li {
    width: 100%;
    height: 26px;
    background-color: #eee;
    border-radius: 20px;
    margin-bottom: 5px;
    border: 2px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bookmarks li:hover {
    border: 2px solid skyblue;
}

.bookmarks li>img {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    vertical-align: bottom;
}

.bookmarks li span,
.bookmarks li a {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1;
}

.bookmarks li a {
    border-radius: 20px;
    padding-left: 5px;
}

.bookmarks li a:hover {
    background-color: pink;
}

.bookmarks li .del {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    cursor: pointer;
    visibility: hidden;
}

.bookmarks li .del img {
    width: 100%;
    height: 100%;
}

.bookmarks li:hover .del {
    visibility: visible;
}

.bookmarks>button {
    width: calc(100% + 4px);
    height: 30px;
    background-color: #ddd;
    border-radius: 20px;
    border: none;
    font-size: 26px;
    border: 2px solid transparent;
    cursor: pointer;
    outline: none;
}

.bookmarks>button:hover {
    border: 2px solid skyblue;
}

.bookmarks .pagination {
    width: 2000px;
    font-style: italic;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.pagination span {
    color: #ccc;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.pagination .page {
    display: inline-block;
    color: #ccc;
    margin-left: 5px;
    margin-right: 5px;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.pagination .page {
    color: #ccc;
    margin-left: 4px;
    margin-right: 4px;
}

.pagination .page:first-of-type {
    color: #14b6f6;
    font-weight: bold;
}

/*--------------- catalogue目录----------- */
.catalogue {
    width: 250px;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding-bottom: 15px;
}

.catalogue h3 {
    color: white;
    line-height: 50px;
}

.catalogue button {
    width: 220px;
    border: none;
    border-radius: 20px;
    font-size: 17px;
    outline: none;
    margin-bottom: 20px;
    position: relative;
    height: 35px;
}

.catalogue .btnbox button a {
    width: 100px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 35px;
}

.catalogue .btnbox button:hover {
    background-image: url(../images/increase.png);
    background-position: 10px 9px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
}

.catalogue .btnbox button:hover img {
    display: inline-block;
}

.catalogue .btnbox button img {
    width: 18px;
    height: 18px;
    position: absolute;
    cursor: pointer;
    display: none;
}

.catalogue .btnbox button img.recatabtn {
    right: 26px;
    top: 8px;
}

.catalogue .btnbox button img.delcatabtn {
    right: 5px;
    top: 8px;
}

.catalogue>button {
    background-image: none;
    cursor: pointer;
    line-height: 35px;
}

.footer {
    width: 100%;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.footer.fixed{
    position: fixed;
    bottom: 0;
}

.footer p {
    line-height: 60px;
    text-align: center;
    font-style: italic;
    color: #ddd;
    font-size: 14px;
}

.dialogbox {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialogbox .dialog {
    width: 350px;
    height: 250px;
    background-color: #ddd;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -175px;
    margin-top: -125px;
    text-align: center;
}

.dialog input {
    text-align: center;
    width: 300px;
    height: 30px;
    border-radius: 15px;
    border: none;
    border: 1px solid #14b6f6;
    outline: none;
}

.dialog h3 {
    line-height: 100px;
}

.dialog button {
    border: none;
    background-color: #14b6f6;
    width: 120px;
    height: 35px;
    border-radius: 20px;
    margin-top: 50px;
    outline: none;
    cursor: pointer;
    color: #eee;
}

.dialog button:last-child {
    margin-left: 55px;
}

.dialogbox .cata-dialog {
    display: none;
}

.dialogbox .redata-dialog {
    display: none;
}

@media all and (max-width:1300px) {
    .userbar .opt {
        left: -70px;
    }
}

@media all and (max-width:500px) {

    /* navbox */
    .navbox {
        position: relative;
    }

    .colorbar {
        position: absolute;
        bottom: -20px;
        width: 100%;
        height: 20px;
        text-align: center;
        font-size: 0;
        z-index: 1;
    }

    .colorbar span {
        border-radius: 0;
        width: 25%;
        height: 20px;
        margin: 0;
        padding: 0;
        border: none;
        box-sizing: border-box;
    }

    /* content */
    .content {
        flex-direction: column-reverse;
    }

    .bookmarks {
        width: 100%;
        margin-top: 10px;
    }

    .catalogue {
        width: 100%;
    }


}

